package com.office.anywher.poly.list;

import org.json.JSONException;
import org.json.JSONObject;

public class Common {
	protected boolean isNullInJsonObject(JSONObject jsonObj,String key) throws JSONException{
		if(jsonObj==null)return true;
		if(!jsonObj.has(key))return true;
		if (jsonObj.getString(key) == null
				|| (jsonObj.getString(key).trim()).equalsIgnoreCase("null")
				|| (jsonObj.getString(key).trim()).equalsIgnoreCase(""))
			return true;
		return false;
	}
}
